package com.cavy.platform.server.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

@Data
public class JobLogDto {
    @NotEmpty(message = "工作空间不能为空")
    private String workSpace;
    @NotEmpty(message = "项目名称不能为空")
    private String project;
    @NotEmpty(message = "流水线不能为空")
    private String pipeline;
    @NotEmpty(message = "任务编号不能为空")
    private String number;
    @NotEmpty(message = "阶段名称不能为空")
    private String stage;
    @Range(min = 0, message = "容器索引")
    private int containerIndex = -1;
    private int dependencyIndex = -1;
}
